import request from '@/utils/request'

// 模拟数据
const mockData = [
  {
    dept: '刑侦大队',
    police: {
      total: 45,
      should: 42,
      actual: 40,
      rate: '95.2%'
    },
    assistant: {
      total: 28,
      should: 25,
      actual: 24,
      rate: '96.0%'
    }
  },
  {
    dept: '治安大队',
    police: {
      total: 38,
      should: 35,
      actual: 33,
      rate: '94.3%'
    },
    assistant: {
      total: 32,
      should: 30,
      actual: 29,
      rate: '96.7%'
    }
  },
  {
    dept: '交警大队',
    police: {
      total: 52,
      should: 48,
      actual: 46,
      rate: '95.8%'
    },
    assistant: {
      total: 35,
      should: 32,
      actual: 31,
      rate: '96.9%'
    }
  },
  {
    dept: '巡警大队',
    police: {
      total: 41,
      should: 38,
      actual: 36,
      rate: '94.7%'
    },
    assistant: {
      total: 29,
      should: 27,
      actual: 26,
      rate: '96.3%'
    }
  },
  {
    dept: '特警大队',
    police: {
      total: 36,
      should: 34,
      actual: 33,
      rate: '97.1%'
    },
    assistant: {
      total: 22,
      should: 20,
      actual: 19,
      rate: '95.0%'
    }
  },
  {
    dept: '网安大队',
    police: {
      total: 28,
      should: 26,
      actual: 25,
      rate: '96.2%'
    },
    assistant: {
      total: 18,
      should: 17,
      actual: 16,
      rate: '94.1%'
    }
  },
  {
    dept: '禁毒大队',
    police: {
      total: 24,
      should: 22,
      actual: 21,
      rate: '95.5%'
    },
    assistant: {
      total: 15,
      should: 14,
      actual: 13,
      rate: '92.9%'
    }
  },
  {
    dept: '经侦大队',
    police: {
      total: 31,
      should: 29,
      actual: 28,
      rate: '96.6%'
    },
    assistant: {
      total: 20,
      should: 19,
      actual: 18,
      rate: '94.7%'
    }
  }
];

// 获取警力统计数据
export function getPoliceStatistics(params) {
  return request({
    url: '/system/policeStatistics/list',
    method: 'get',
    params: params
  })
} 